// $Id$
// Licensed under Apache License Version 2.0
// See: http://www.apache.org/licenses/LICENSE-2.0.html
package de.servicezombie.tcmdb.rest.service;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import de.servicezombie.pub.r1.CommonRestResponse;
import de.servicezombie.tcmdb.rest.vo.WsApplication;
import de.servicezombie.tcmdb.rest.vo.WsListResult;


/**
 * <b>Examples</b>
 * 
 * <pre>
 *  GET    /applications/active/all.xml
 * </pre>
 * 
 * <em>author code must be formatted as xml and not as json, but json is easier to document in javadoc</em>
 * 
 * @author ChKa
 * @see WsApplication
 */
@Path("/applications")
@Consumes({ "test/json", "application/json", "test/xml", "application/xml" })
@Produces({ "test/json", "application/json", "test/xml", "application/xml" })
public interface ApplicationService {
	
	/**
	 * Find all applications with active TestcaseDefinitions.
	 * 
	 * @response {@link WsListResult} of {@link WsApplication} in {@link CommonRestResponse}
	 */
	@GET
	@Path("/active/{sublistRequest}")
	void getActiveApplications(@PathParam("sublistRequest") String sublistRequest);
}
